package com.example.zhouqiong.richeditotandroid.db.entity;

import androidx.room.Entity;
import androidx.room.PrimaryKey;
import androidx.room.TypeConverters;

import com.example.zhouqiong.richeditotandroid.db.conventer.DateConverter;
import com.example.zhouqiong.richeditotandroid.db.conventer.StringListConventer;

import java.util.Date;

@Entity(tableName = "diary_entity")
@TypeConverters({StringListConventer.class, DateConverter.class})
public class BabyEntity {
    @PrimaryKey(autoGenerate = true)
    private int id;
    private String name;
    private String photo;
    private String weight = "0";
    private String height = "0";
    private Date birthday;
    private String sex;

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public String getHeight() {
        return height;
    }

    public void setHeight(String height) {
        this.height = height;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }
}
